package com.example.owner;

import io.micronaut.context.event.StartupEvent;
import io.micronaut.runtime.Micronaut;
import io.micronaut.runtime.event.annotation.EventListener;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Application {

    public static void main(String[] args) {
        Micronaut.run(Application.class, args);
    }

    private final PetOwnerCliClient petOwnerCliClient;

    public Application(PetOwnerCliClient petOwnerCliClient) {
        this.petOwnerCliClient = petOwnerCliClient;
    }

    @EventListener
    public void init(StartupEvent event) {
        log.info("Application {} ", event);
    }
}